package com.study.tiandimapview;

import com.egis.geom.Point;
import com.egis.map.scalecontrol.ScaleControlOption;

public class MapParams {
    private Point defaultCenter = new Point(116.3466d, 39.8704d);
    private int defaultLevel = 10;
    private boolean isShowScaleControl;
    private double maxX = 180.0d;
    private double maxY = 90.0d;
    private int maxZoom = 18;
    private double minX = -180.0d;
    private double minY = -90.0d;
    private int minZoom = 2;
    private ScaleControlOption scaleControlOption;

    public MapParams setDefaultLevel(int defaultLevel2) {
        this.defaultLevel = defaultLevel2;
        return this;
    }

    public MapParams setDefaultCenter(Point defaultCenter2) {
        this.defaultCenter = defaultCenter2;
        return this;
    }

    public MapParams setMaxZoom(int maxZoom2) {
        this.maxZoom = maxZoom2;
        return this;
    }

    public MapParams setMinZoom(int minZoom2) {
        this.minZoom = minZoom2;
        return this;
    }

    public MapParams setMinX(double minX2) {
        this.minX = minX2;
        return this;
    }

    public MapParams setMinY(double minY2) {
        this.minY = minY2;
        return this;
    }

    public MapParams setMaxX(double maxX2) {
        this.maxX = maxX2;
        return this;
    }

    public MapParams setMaxY(double maxY2) {
        this.maxY = maxY2;
        return this;
    }

    public int getDefaultLevel() {
        return this.defaultLevel;
    }

    public Point getDefaultCenter() {
        return this.defaultCenter;
    }

    public int getMaxZoom() {
        return this.maxZoom;
    }

    public int getMinZoom() {
        return this.minZoom;
    }

    public double getMinX() {
        return this.minX;
    }

    public double getMinY() {
        return this.minY;
    }

    public double getMaxX() {
        return this.maxX;
    }

    public double getMaxY() {
        return this.maxY;
    }

    public boolean isShowScaleControl() {
        return this.isShowScaleControl;
    }

    public MapParams setShowScaleControl(boolean showScaleControl) {
        this.isShowScaleControl = showScaleControl;
        return this;
    }

    public ScaleControlOption getScaleControlOption() {
        return this.scaleControlOption;
    }

    public MapParams setScaleControlOption(ScaleControlOption scaleControlOption2) {
        this.scaleControlOption = scaleControlOption2;
        return this;
    }
}
